package com.wing.member.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.member.model.response.MemberLoginLogVO;
import com.wing.member.model.entity.MemberLoginLog;
import com.wing.member.model.request.MemberLoginLogForm;

import java.util.List;
import java.util.Map;

/**
 * 会员登录记录-Service
 *
 * @author
 */
public interface MemberLoginLogService extends IService<MemberLoginLog> {

    /**
     * 添加
     *
     * @param memberLoginLogForm
     * @return
     */
    int add(MemberLoginLogForm memberLoginLogForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<MemberLoginLogVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<MemberLoginLogVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    MemberLoginLogVO get4appById(Long id);

    /**
     * 分页-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<MemberLoginLog> pageList(Page page, Map<String, Object> params);
}
